#include "eventtype.h"

const char *getCodeReason(i32 code)
{   
    i32 i = 0;
    for(; Reasons[i].code != ERRORCODE_NULL; i ++){
        if(Reasons[i].code == code){
            return Reasons[i].reason;
        }
    }

    return Reasons[i].reason;
}
